package com.jiang.daily.Q2011;

/**
 * @author Jiang
 * @version 1.0
 * @date 2025/10/20 19:35
 */
class Solution {
    public int finalValueAfterOperations(String[] operations) {
        int res = 0;
        for (String o: operations) {
            if (o.charAt(0) == '-' || o.charAt(2) == '-') {
                res--;
            } else {
                res++;
            }
        }
        return res;
    }
}
